package com.peppa.petshop.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张三
 * @since 2021-06-03
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    public class Good implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 商品编号
     */
        @TableId(value = "good_id", type = IdType.AUTO)
      private Integer goodId;

      /**
     * 商品名
     */
      private String goodName;

      /**
     * 动物类别
     */
      private Integer category;

      /**
     * 价格
     */
      private BigDecimal price;

      /**
     * 是否流浪
     */
      private Boolean isMissing;

      /**
     * 数量
     */
      private Integer count;

      /**
     * 介绍
     */
      private String introduction;

      /**
     * 图片数量
     */
      private Integer imageCount;

      /**
     * 图片地址
     */
      private String imagePath;

      /**
     * 是否热销
     */
      private Boolean isHot;

      /**
     * 创建时间
     */
        @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      /**
     * 修改时间
     */
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

  @TableLogic
  private Integer deleted;
}
